﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kaiser.Modules.Mis.Models;
using Kaiser.Models;
using Kaiser.Models.JsonModels;

namespace Kaiser.Modules.Mis.Repositories
{
    public interface IBookRepository
    {
        DataGrid<BookInput> SearchBook(BookSearch search, PagingInfo pageInfo);

        void InsertBook(BookInput model);

        void UpdateBook(BookInput model);

        DataGrid<CategoryInput> SearchCategory(CategorySearch search, PagingInfo pageInfo);

        void InsertCategory(CategoryInput model);

        void UpdateCateogry(CategoryInput model);

        DataGrid<CategoryInput> GetCategoryTreeList(CategorySearch search, PagingInfo pageinfo);

        int DeleteBookList(string ids);

        int DeletePublisherList(string ids);

        int DeleteCategoryList(string ids);     

        void UpdatePublisher(PublisherInput model);

        void InsertPublisher(PublisherInput model);

        DataGrid<PublisherInput> SearchPublisher(PublisherSearch search, PagingInfo pageinfo);
    }
}
